﻿using System;
using System.Collections.Generic;
using DayDayUp.Core.Domain.Users;

namespace DayDayUp.Core.Domain.Posts
{
    public class Post : BaseMongoEntity
    {
        public virtual string Title { get; set; }

        public virtual string Description { get; set; }

        public string Slug { get; set; }

        public virtual int Score { get; set; }

        public virtual User User { get; set; }

        public virtual string[] Categories { get; set; }

        public virtual List<Comment> Comments { get; private set; }


        public virtual DateTime CreateOn{ get; set; }

        public virtual DateTime UpdatedOn{ get; set; }

        public virtual bool IsPublished { get; set; }

        public virtual int TotalScore { get; set; }


    }
}